package genetic.q3.functions.math;

import genetic.Function;
import genetic.TreeNode;
import genetic.q3.functions.Computable;
import genetic.q3.functions.SymbolicRegressionFunction;

public class nextUp extends SymbolicRegressionFunction{

	public nextUp() {
		super(null);
	}
	
	public nextUp(TreeNode[] kids) {
		super(kids);
	}

	@Override
	public Function createInstance(TreeNode[] kids) {
		return new nextUp(kids);
	}

	@Override
	public TreeNode createRandomInstance(TreeNode[] kids) {
		return new nextUp(kids);
	}

	@Override
	public int getNumKids() {
		return 1;
	}

	@Override
	public String getName() {
		return "nextUp";
	}

	@Override
	public double compute(double xVal) {
		/*double val1 = ((Computable)kids[0]).compute(xVal);
		return Math.nextUp(val1);*/
		return 0;
	}
}
